﻿#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    int singleNumber(vector<int>& nums)
    {
        int num = 0;
        for (int i = 0; i < nums.size(); ++i)
        {
            num ^= nums[i];
        }
        return num;
    }
};

